home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / kgdb / RCS / kgdb.man,v < prev   
Encoding:
Text File  |  1990-10-18  |  5.5 KB  |  183 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.3
  10. date     90.10.18.12.21.03;  author kupfer;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     90.05.03.14.43.59;  author mendel;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     89.01.24.16.39.13;  author mendel;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @Man page for kgdb.
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @Minor grammatical fixes.
  33. @
  34. text
  35. @' Copyright 1989 Regents of the University of California
  36. ' Permission to use, copy, modify, and distribute this
  37. ' documentation for any purpose and without fee is hereby
  38. ' granted, provided that this notice appears in all copies.
  39. ' The University of California makes no representations about
  40. ' the suitability of this material for any purpose.  It is
  41. ' provided "as is" without express or implied warranty.
  42. ' $Header: /sprite/src/cmds/kgdb/RCS/kgdb.man,v 1.2 90/05/03 14:43:59 mendel Exp Locker: kupfer $ SPRITE (Berkeley)
  43. .so \*(]ltmac.sprite
  44. .HS KGDB cmds
  45. .BS
  46. .SH NAME
  47. kgdb \- A kernel debugger based on GDB
  48. .SH SYNOPSIS
  49. .nf
  50. \fBkgdb\fR [\fI-mtm\fR]\ [\fIgdb options\fR] [\fIkernel\fR]
  51. .SH OPTIONS
  52. .IP "\fB\-mtm\fR" 14
  53. Invoke the debugger for the target machine given by tm.  If specified, this
  54. option must proceed all other options. The list of available target machines
  55. include sun2, sun3, sun4, and spur.
  56. .LP
  57. See the GNU GDB documentation for information about the rest of the available
  58. options.
  59. .BE
  60.  
  61. .SH DESCRIPTION
  62. .PP
  63. \fBKgdb\fR is a version of the GNU gdb debugger modified to debug Sprite
  64. kernels.
  65. This manual page only describes the parts of \fBkgdb\fR that differ 
  66. from \fBgdb\fR.  
  67. The reader is referred to the GNU GDB documentation and gdb manual page for a
  68. complete description of \fBgdb\fR.
  69. .SH "DIFFERENCES FROM GDB"
  70. .LP
  71. The "attach" and "detach" commands of \fBkgdb\fR differ from those of 
  72. \fBgdb\fR.  
  73. .IP "\fBattach\fR machine"
  74. The attach command of \fBkgdb\fR takes as an argument the hostname or 
  75. internet address of a Sprite machine to debug.  
  76. The command assumes that the specified machine is in the kernel 
  77. debugging stub and will wait for the machine to
  78. enter the debugger.  Once the connection to the machine is 
  79. established,
  80. the trap condition and any unprinted syslog messages are displayed.
  81. .IP "\fBdetach\fR [cont]"
  82. The detach command breaks the connection between \fBkgdb\fR and the
  83. currently attached machine.  If any argument is specified, the machine
  84. is continued before the connection is detached.  When used with the 
  85. "attach" command, the "detach" command allows debugging multiple machines 
  86. from the same \fBkgdb\fR session.
  87. .SH "ADDITIONS TO GDB"
  88. \fBKgdb\fR supports several commands not found in \fBgdb\fR.  The commands
  89. are:
  90. .IP "\fBpid\fR proc-id"
  91. The pid command sets the focus of the debugger on the  process whose
  92. process id is proc-id. 
  93. Once a process is choosen with the pid command,
  94. all stack reference commands such as "backtrace" and "frame" will reference
  95. this process's stack.  For example, the command "pid 0xa1139" followed
  96. by the "backtrace" command will display a stack backtrace of the process
  97. with pid of 0xa1139. Note that proc-id can be any expression supported by
  98. \fBkgdb\fR.
  99. .IP "\fBreboot\fR [string]"
  100. The reboot command reboots the current attached machine. The optional
  101. argument string is passed to the kernel routine Mach_MonReboot.  Note 
  102. that this command is the same as typing "print Mach_MonReboot(string)" followed
  103. by a break and a detach command except that the reboot command will work 
  104. even if no symbol table is loaded.
  105. .IP "\fBversion\fR"
  106. The version command prints the kernel version string of the 
  107. attached machine. This command outputs the same information as the
  108. command "print SpriteVersion()" but like the "reboot" command doesn't
  109. require a symbol table to be loaded.
  110. .IP "\fBdebug\fR hostname"
  111. The debug command is similar to the attach command differing only
  112. in the case when the specified machine is not already in the debugging stub.  
  113. Rather than waiting
  114. for the machine to enter the debugger like the attach command, the
  115. debug command will force the machine into the debugger using 
  116. the \fBkmsg\fR program. 
  117. In order for this command to work, 
  118. the \fBkmsg\fR program must be available in the current
  119. search path of \fBkgdb\fR. Because of its anti-social possiblities, 
  120. caution is urged in the use of the debug command.
  121. .SH "DELETIONS FROM GDB"
  122. .LP
  123. Several features of \fBgdb\fR are not available in \fBkgdb\fR because 
  124. they don't apply to kernel debugging.
  125. Missing features include the ability to start and kill programs with the 
  126. "run"
  127. and "kill" commands; to change the program's environment and
  128. terminal characteristics with the
  129. "set-env", "unset-env", "set-args", and "tty" commands;  
  130. and  to handle signals with
  131. "handle" and "signal" commands.  
  132. Additionaly, \fBgdb\fR's core file processing such as the 
  133. .B core
  134. command are also 
  135. not available in \fBkgdb\fR.
  136.  
  137. .SH KEYWORDS
  138. gdb, kernel, debugging, kmsg
  139. @
  140.  
  141.  
  142. 1.2
  143. log
  144. @*** empty log message ***
  145. @
  146. text
  147. @d9 1
  148. a9 1
  149. ' $Header: /sprite/src/cmds/kgdb/RCS/kgdb.man,v 1.1 89/01/24 16:39:13 mendel Exp Locker: mendel $ SPRITE (Berkeley)
  150. d12 1
  151. a12 1
  152. .HS <KGDB> cmds
  153. d25 1
  154. a25 1
  155. See the GNU GDB documentation for information about rest of the available
  156. d43 2
  157. a44 2
  158. internet address of Sprite machine to debug.  
  159. The commands assumes that the specified machine is in the kernel 
  160. d47 1
  161. a47 1
  162. successful established,
  163. d100 3
  164. a102 1
  165. Additionaly, \fBgdb\fR's core file processing such as "core" command are also 
  166. @
  167.  
  168.  
  169. 1.1
  170. log
  171. @Initial revision
  172. @
  173. text
  174. @d9 1
  175. a9 1
  176. ' $Header: /sprite/lib/forms/RCS/proto.man,v 1.3 89/01/09 11:43:01 ouster Exp $ SPRITE (Berkeley)
  177. d92 1
  178. a92 1
  179. either they don't apply to kernel debugging.
  180. @
  181.